﻿using Blog.Module.Base;

namespace Blog.Module;

/// <summary>
/// 用户表
/// </summary>
public class Users : Entity
{
    public Users()
    {
        CreationTime = DateTime.Now;
    }

    /// <summary>
    /// 用户名
    /// </summary>
    public string UserName { get; set; } = null!;
    /// <summary>
    /// 密码
    /// </summary>
    public string Password { get; set; } = null!;
    /// <summary>
    /// 头像
    /// </summary>
    public string Avatar { get; set; }
    /// <summary>
    /// 邮箱
    /// </summary>
    public string Email { get; set; }
    /// <summary>
    /// 角色
    /// </summary>
    public RoleType Role { get; set; }
}
